package com.twu.bibilioteca;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/20/14
 * Time: 6:33 AM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {
    private String name ;
    private String director;
    private int year;
    private String rating;

    public Movie(String name , String director , int year)
    {
         this.name = name;
        this.director = director;
        this.year=year;
        this.rating = Integer.toString((int)(Math.random()*10));
    }


    public String getName()
    {
        return name;
    }

    public String getDirector()
    {
        return director;
    }

    public Integer getYear()
    {
        return year;
    }

    public String getRating()
    {
        return rating;
    }




}
